package com.lindroy.jetpacknotes.viewmodel

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.extensions.launchAct
import kotlinx.android.synthetic.main.activity_view_model.*

class ViewModelActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view_model)
        btnTraditional.setOnClickListener {
            launchAct<EditTextActivity>()
        }
        btnViewModel.setOnClickListener {
            launchAct<EditTextViewModelActivity>()
        }
    }
}